package com.dnjn.mes.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.mes.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 状态表 仅记录有变化时的状态
 * </p>
 *
 * @author Amber
 * @since 2023-07-28
 */
@Accessors(chain = true)
@Getter
@Setter
@TableName("mes_record_status")
public class MesRecordStatus extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @TableId(value = "status_id", type = IdType.ASSIGN_ID)
    private Long statusId;

    /**
     * val:MAINTAIN AWAIT STOP RUNNING
     */
    @TableField("`status`")
    private String status;

    /**
     * 当前时间
     */
    private LocalDateTime currentDatetime;

    private LocalDateTime startDatetime;
    private LocalDateTime endDatetime;

    private Long equipmentId;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;
}
